using System;
using System.Collections.Generic;

namespace ConsoleApplication2.Models
{
    public partial class P
    {
        public P()
        {
            this.Psdets = new List<Psdet>();
            this.PSPayments = new List<PSPayment>();
        }

        public double PSID { get; set; }
        public short STORENUM { get; set; }
        public short REGNUM { get; set; }
        public string ID { get; set; }
        public Nullable<int> PCODE { get; set; }
        public string TNUMBER { get; set; }
        public string NUMBER { get; set; }
        public short SALESMAN { get; set; }
        public System.DateTime DATE { get; set; }
        public string TIME { get; set; }
        public Nullable<double> SUBTOTAL { get; set; }
        public Nullable<double> COST { get; set; }
        public Nullable<double> SALESTAX { get; set; }
        public Nullable<double> GST { get; set; }
        public bool POSTED { get; set; }
        public Nullable<double> AMTPDOUT { get; set; }
        public string CCNUM { get; set; }
        public string CCEXP { get; set; }
        public string CHECKNUM { get; set; }
        public Nullable<bool> VOID { get; set; }
        public short CUSTCURR { get; set; }
        public Nullable<double> CASHRCVD { get; set; }
        public Nullable<double> CHKRCVD { get; set; }
        public Nullable<double> CCRCVD { get; set; }
        public Nullable<double> CHGRCVD { get; set; }
        public Nullable<short> CASHACTCUR { get; set; }
        public Nullable<double> CASHPAID { get; set; }
        public Nullable<double> CHKPAID { get; set; }
        public Nullable<double> CCPAID { get; set; }
        public Nullable<double> CHGPAID { get; set; }
        public string PONUMBER { get; set; }
        public string AUTHCODE { get; set; }
        public Nullable<bool> HOLD { get; set; }
        public string REFERENCE { get; set; }
        public short SALETYPE { get; set; }
        public short DOCTYPE { get; set; }
        public string CASHACCT { get; set; }
        public string COMMENTS { get; set; }
        public Nullable<double> AMTRECVD { get; set; }
        public string HOWPAID { get; set; }
        public Nullable<bool> ONACCOUNT { get; set; }
        public string SONUMBER { get; set; }
        public Nullable<int> CONTACT { get; set; }
        public string LOCATION { get; set; }
        public string CUSTNAME { get; set; }
        public Nullable<System.DateTime> DUEDATE { get; set; }
        public Nullable<bool> CLOSEDOUT { get; set; }
        public string ARBATCH { get; set; }
        public string GLBATCH { get; set; }
        public string ARREFERENCE { get; set; }
        public Nullable<short> MODE { get; set; }
        public Nullable<int> USERID { get; set; }
        public Nullable<bool> ORDERCLOSED { get; set; }
        public string ORDERNUM { get; set; }
        public string QUOTENUM { get; set; }
        public Nullable<System.DateTime> QUOTEXPIRY { get; set; }
        public Nullable<int> SHIPTO { get; set; }
        public Nullable<System.DateTime> EXPDELIVDATE { get; set; }
        public Nullable<System.DateTime> DELIVDATE { get; set; }
        public Nullable<byte> TRADETYPE { get; set; }
        public Nullable<double> DISCVAL { get; set; }
        public Nullable<double> TOTAL { get; set; }
        public string USERREF { get; set; }
        public string DOCNUM { get; set; }
        public string CUSTPHONE { get; set; }
        public Nullable<int> CREATEUSER { get; set; }
        public Nullable<int> EDITUSER { get; set; }
        public Nullable<int> VOIDUSER { get; set; }
        public Nullable<double> B1PDOUT { get; set; }
        public Nullable<double> B2PDOUT { get; set; }
        public Nullable<double> CHANGEDUE { get; set; }
        public string File_Primary_Key { get; set; }
        public Nullable<double> TAX { get; set; }
        public string CUSTADDR { get; set; }
        public string LPO { get; set; }
        public short CSTCTRID { get; set; }
        public string DELNOTENUM { get; set; }
        public Nullable<int> DOC_REF { get; set; }
        public Nullable<int> Duration { get; set; }
        public Nullable<System.DateTime> DateOrdered { get; set; }
        public Nullable<bool> Production { get; set; }
        public Nullable<bool> PrintWorkSheet { get; set; }
        public Nullable<short> SiteID { get; set; }
        public Nullable<System.DateTime> timestmp { get; set; }
        public string vglbatch { get; set; }
        public Nullable<double> PS_VAT_RATE { get; set; }
        public bool galileo { get; set; }
        public string InvoiceRem { get; set; }
        public string ReportRem { get; set; }
        public bool Printed { get; set; }
        public string project { get; set; }
        public short invoicemode { get; set; }
        public bool ApplyVAT { get; set; }
        public string TSFDestLoc { get; set; }
        public Nullable<int> PS_PJ_Project { get; set; }
        public Nullable<int> PS_RepairJob { get; set; }
        public string PS_Approval { get; set; }
        public string PS_Vend { get; set; }
        public string PS_Desc { get; set; }
        public virtual Acct Acct { get; set; }
        public virtual Batchttl Batchttl { get; set; }
        public virtual Batchttl Batchttl1 { get; set; }
        public virtual Cstctr Cstctr { get; set; }
        public virtual currency currency { get; set; }
        public virtual Cust Cust { get; set; }
        public virtual Name Name { get; set; }
        public virtual Name Name1 { get; set; }
        public virtual Name Name2 { get; set; }
        public virtual Name Name3 { get; set; }
        public virtual PriceLst PriceLst { get; set; }
        public virtual Register Register { get; set; }
        public virtual Salesman Salesman1 { get; set; }
        public virtual Store Store { get; set; }
        public virtual ICollection<Psdet> Psdets { get; set; }
        public virtual ICollection<PSPayment> PSPayments { get; set; }
    }
}
